package cn.lg.soar.message.api.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * 通知类型
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "通知类型")
public enum NoticeTypeEnum implements IDict<Integer>, IEnum<Integer> {

    ordinary("默认", 0),
    important("重要不紧急", 1),
    urgent("紧急不重要", 2),
    urgent_important("紧急又重要", 3)
    ;
    NoticeTypeEnum(String label, int value){
        this.label = label;
        this.value = value;
    }

    private final String label;
    @EnumValue
    private final int value;

    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.label;
    }

}
